<?php
//DB Created by Rich L. a member in service in Northern Delaware.  Please feel free to share this code wherever it may be useful to alcholoics.  Should you have questons please contact me at sobernerd@gmail.com

$pageTitle = 'NDIAA - Administration - Groups';
require_once ('../../config/include_paths.php');
require_once ('../../admin/config.php');
require_once('../../admin/dbconnect.php');	// database connect script.
session_start(); 

// Performing SQL query
$query = 'SELECT * FROM intergroup_reps ORDER BY lname';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());

// Printing results in HTML
echo "<table>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
   echo "\t<tr>\n";
   foreach ($line as $col_value) {
       echo "\t\t<td>$col_value</td>\n";
   }
   echo "\t</tr>\n";
}
echo "</table>\n";

// Free resultset
mysql_free_result($result);

?>

